/**
 * Splitter 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/splitter/style';

export const splitterThemeConfig: Partial<ComponentToken> = {
  splitBarDraggableSize: 8,
  splitBarSize: 1,
  splitTriggerSize: 24,
};

export const getSplitterTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...splitterThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as SplitterComponentToken } from 'antd/es/splitter/style';

